Testing Unpublished Library Version
You may want to test changes made to the library in an app locally. This becomes useful to validate a fix or root cause an issue occuring only in a specific app or context. Or someone may want to demo a cool new feature in real app context before the changes are tested and published. There are a few ways to test unpublished versions:
-
If the library and app are being developed on the same devbox, follow https://github.com/microsoft/fluentui/wiki/Using-local-(unpublished)-version-of-the-lib-with-a-local-React-app
-
Otherwise, create a private package of the library and replace the published version with it in the app. Follow below steps:
- Checkout a codespace. Go to
https://github.com/codespaces/new
, select themicrosoft\fluentui
repo and your working branch. - Go to the
packages\react-charting
path which contains the local changes. - Run
yarn build
- Run
yarn pack
. This will generate a tgz file (for egfluentui-react-charting-v5.16.13.tgz
). - Copy the tgz file to the app devbox.
- Go to the app and run
npm install <path to tgz file>
oryarn install <path to tgz file>
depending upon the package manager of your app. - Install any additional package dependencies that are introduced.